package com.fr.report.web.ui;

import com.fr.report.js.JavaScriptImpl;
import com.fr.report.web.event.ActionUtils;
import com.fr.report.web.event.Listener;
import com.fr.web.Repository;

public abstract class ToolBarMenuButton extends MenuButton
{
  public ToolBarMenuButton(String paramString1, String paramString2)
  {
    super(paramString1, paramString2);
  }

  public Listener[] createListeners(Repository paramRepository)
  {
    return new Listener[] { new Listener(WebContentUtils.getContentPanel(paramRepository), "startload", new JavaScriptImpl(ActionUtils.getDisableAction())), new Listener(WebContentUtils.getContentPanel(paramRepository), "afterload", new JavaScriptImpl(ActionUtils.getEnableAction())) };
  }

  public boolean equals(Object paramObject)
  {
    if ((paramObject == null) || (!(paramObject instanceof ToolBarMenuButton)))
      return false;
    return super.equals(paramObject);
  }
}